8d3d25ed6c0c86378748648268dd4bfd0229f51e,providers/http/src/java/org/mule/providers/http/transformers/ObjectToHttpClientMethodRequest.java,ObjectToHttpClientMethodRequest,transform,#Object#String#UMOEventContext#,103

Before Change


                                        .getBytes(encoding)));
                            }
                            else {
                                postMethod.setRequestEntity(new ByteArrayRequestEntity(src.toString()
                                        .getBytes()));
                            }
                        }
                        else if (src instanceof InputStream) {

After Change


                            }
                        	if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE;
                            if (encoding == null) encoding = MuleManager.getConfiguration().getEncoding();
                            postMethod.setRequestEntity(new StringRequestEntity(src.toString(), mimeType, encoding));
                        }
                        else if (src instanceof InputStream) {
                        	// Danger here! We don't know if the contents is really text or not